package com.wicket.okrframework.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrframework.biz.service.DashboardOrgService;
import com.wicket.okrframework.biz.service.dto.req.*;
import com.wicket.okrframework.biz.service.dto.res.*;
import com.wicket.okrframework.common.ro.OkrResult;
import com.wicket.okrframework.common.util.CommonFunctionHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/base/dashboardOrg/")
public class DashboardOrgController {

  @Autowired
  DashboardOrgService dashboardOrgService;
/**
   * D1查询我下属就职记录列表(公共)
   */
    @PostMapping("querySubordinateInductionRecordListCom")
    public OkrResult<QuerySubordinateInductionRecordListComRespDto> querySubordinateInductionRecordListCom(@RequestBody @Validated QuerySubordinateInductionRecordListComReqDto reqDTO){
    return OkrResult.success(dashboardOrgService.querySubordinateInductionRecordListCom(reqDTO));
    }
/**
   * D1批量查询个人资料By身份人员(公共)
   */
    @PostMapping("batchQueryUserinfoByMemberCom")
    public OkrResult<BatchQueryUserinfoByMemberComRespDto> batchQueryUserinfoByMemberCom(@RequestBody @Validated BatchQueryUserinfoByMemberComReqDto reqDTO){
    return OkrResult.success(dashboardOrgService.batchQueryUserinfoByMemberCom(reqDTO));
    }
/**
   * D1批量查询我下属就职记录(公共)
   */
    @PostMapping("batchQuerySubordinateInductionRecordCom")
    public OkrResult<BatchQuerySubordinateInductionRecordComRespDto> batchQuerySubordinateInductionRecordCom(@RequestBody @Validated BatchQuerySubordinateInductionRecordComReqDto reqDTO){
    return OkrResult.success(dashboardOrgService.batchQuerySubordinateInductionRecordCom(reqDTO));
    }
/**
   * D1查询主管下属就职记录列表(公共)
   */
    @PostMapping("queryDirectorSubInateInductionRecordListCom")
    public OkrResult<QueryDirectorSubInateInductionRecordListComRespDto> queryDirectorSubInateInductionRecordListCom(@RequestBody @Validated QueryDirectorSubInateInductionRecordListComReqDto reqDTO){
    return OkrResult.success(dashboardOrgService.queryDirectorSubInateInductionRecordListCom(reqDTO));
    }
}
